package com.lxw.rmg.menu.utils;

import java.text.SimpleDateFormat;

public class TimeUtil {
    public static boolean compareTime(String time){
        //获取当前时间
        String nowDate = new SimpleDateFormat("yyyy-MM-dd").format(System.currentTimeMillis());
        //截取
        String[] sDate = time.split(" ");
        return nowDate.equals(sDate[0]);
    }
}
